<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <p style="width:60px">用户名<input id="username" type="text"></p>
    <p style="width:60px">密码<input id="password" type="password"></p>
<button onclick="login()">登录</button>
</body>
<script src="frame/js/script_min.js"></script>
<script src="frame/js/util.js"></script>
<script>
    let login = ()=>{
        let username = $('#username').val();
        let password = $('#password').val();
        ServerAgent.invoke("backStage-login",{username,password}).then(res=>{
            window.location.href = `index.html?role=${res.args.role}&login=${res.args.login}`;
        })
    };
</script>
</html>